package com.gxa.jjty.admin.schedule;

import com.gxa.jjty.admin.service.PhyUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @ClassName ResetTodayOrderSum
 * @Author: ws
 * @date 2021/12/3 10:11
 */
@Component
public class ResetTodayOrderSum {

    @Autowired
    private PhyUserService phyUserService;

    // 每天1点执行
    //@Scheduled(cron = "0 0 1 * * ?")
    public void restTodayOrderSum(){
        // 重置今日订单数
        phyUserService.resetTodayOrderSum();
    }

}
